package com.example;

import com.example.service.Carshier;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: overer
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-14 21:06
 **/
public class ZlwTest {
    public static void main(String[] args) {
        ApplicationContext app = new ClassPathXmlApplicationContext("spring02.xml");
        Carshier carshier = app.getBean(Carshier.class);
        List<String> list=new ArrayList<String>();
        list.add("110");
        list.add("120");
        carshier.buy(list,"苏枝");

    }

}
